package com.lyy.controller;

import com.lyy.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 测试spring-mvc环境搭建成功,并和spring整合成功的controller
 */
@Controller
@RequestMapping("/test")
public class TestMVCController {

    @GetMapping("/success")
    public String test(){
        return "success";
    }

}
